package com.followmeandroid.messages;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Title: FindMyInfoRequest</p>
 * <p>Description: Container class for storing
 * find my info requests for the server.</p>
 * @author Adam Drews
 * @email adam.drews@my.uwrf.edu
 * @date 11/17/2014
 * @team Tyler Johnson
 * @email tyler.johnson@my.uwrf.edu
 * @team Nicholas Thorp
 * @email nicholas.thorp@my.uwrf.edu
 */
public class FindMyInfoRequest extends ARequestBase {

    /**
     * A default constructor for a find my info request.
     */
    public FindMyInfoRequest(){}

    /**
     * Returns a list of key value pairs consisting of the
     * memberid field name, and the value of the member
     * that is the subject of this request.
     * @return paramsOut    Name value pair: memberid field name
     *                                       memberid value
     */
    public List<NameValuePair> toKeyValuePairs(){
        List<NameValuePair> paramsOut = new ArrayList<NameValuePair>();
        paramsOut.add(new BasicNameValuePair("memberid",memberid));
        return paramsOut;
    }
}
